package com.aioz.security.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Size;

/**
 * <p>
 * 
 * </p>
 *
 * @author Aioz
 * @since 2022-10-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_project")
public class Project implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户Id
     */
    private Integer userId;

    /**
     * 项目名称
     */
    @Size(min = 3, max = 20 )
    private String name;

    /**
     * 项目链接
     */
    @Size(min = 3, max = 20 )
    private String link;

    /**
     * 项目角色
     */
    @Size(min = 3, max = 15 )
    private String role;

    /**
     * 开始时间
     */
    private LocalDate startTime;

    /**
     * 结束时间
     */
    private LocalDate endTime;

    /**
     * 项目描述
     */
    private String performance;

    /**
     * 项目背景
     */
    @Size(min = 3, max = 25 )
    private String background;


}
